import React, { AsyncStorage } from 'react-native'

export class DeviceStorage {
    static async get(key) {
        try {
            const value = await AsyncStorage.getItem(key)
            return value
        } catch (e) {
            console.log(e);
        }
    }
    static async set(key, value) {
        try {
            await AsyncStorage.setItem(key, value)
        } catch (e) {
            console.log(e);
        }
    }
    static async delete(key) {
        try {
            await AsyncStorage.removeItem(key)
        } catch (e) {
            console.log(e);
        }
    }

}
